package cn.fzkj.framework.messagequece;

/** 封装消息数据 */
public class MessageInfo {
    /** 消息接收者id */
    private String receiveID;
    /** 具体的消息 */
    private String content;
    /** 消息创建时间 */
    private Long createTime;

    /** 发送方id */
    private String renderID;

    /** 消息类型，主要通过这个字段判断处理逻辑 */
    private MessageType messageType;

    /** 0:广播 1:单点 */
    private Integer scope;

    public MessageInfo() {
    }

    public MessageInfo(String receiveID, String content, Long createTime, String renderID, MessageType messageType, Integer scope) {
        this.receiveID = receiveID;
        this.content = content;
        this.createTime = createTime;
        this.renderID = renderID;
        this.messageType = messageType;
        this.scope = scope;
    }

    public String getReceiveID() {
        return receiveID;
    }

    public void setReceiveID(String receiveID) {
        this.receiveID = receiveID;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getRenderID() {
        return renderID;
    }

    public void setRenderID(String renderID) {
        this.renderID = renderID;
    }

    public MessageType getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    public Integer getScope() {
        return scope;
    }

    public void setScope(Integer scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "MessageInfo{" +
                "receiveID='" + receiveID + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", renderID='" + renderID + '\'' +
                ", messageType=" + messageType +
                ", scope=" + scope +
                '}';
    }
}
